<?php get_header(); ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

	<ul id="posts">
	 		<li class="post single" id="post-<?php the_ID(); ?>">
	 			<div class="post_content">
	 				<h2 class="title"><?php the_title(); ?></h2>
	 				<div class="txt">
	 		<p class="clean adsense">
                <script type="text/javascript"><!--
                google_ad_client = "ca-pub-7920726685064722";
                /* [ucd.fm]文章页 */
                google_ad_slot = "2448255239";
                google_ad_width = 468;
                google_ad_height = 60;
                //-->
                </script>
                <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
            </p>
	 				
	 				<?php the_content(); ?>
	 				<?php wp_link_pages('before=<p id="postpages">文章分页&after=</p>'); ?>
	 	<p class="clean">
			<!-- AddThis Button BEGIN -->
			<div class="addthis_toolbox addthis_default_style addthis_16x16_style">
            <a class="addthis_button_sinaweibo"></a>
			<a class="addthis_button_douban"></a>
			<a class="addthis_button_qzone"></a>
			<a class="addthis_button_kaixin"></a>
            <a class="addthis_button_twitter"></a>
			<a class="addthis_button_facebook"></a>
			<a class="addthis_button_delicious"></a>
			<a class="addthis_button_compact"></a>
			</div>
			<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
			<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=uulele"></script>
			<!-- AddThis Button END -->
		</p>
	 				</div>
	 			</div>
	 			<div class="post_info">
	 				<span class="post_rss"><?php printf("<a href='%s'>订阅</a>", get_post_comments_feed_link()); ?></span>
	 				<span class="post_time"><?php esc_attr( the_time('Y-m-d') ); ?></span>
	 				<span class="post_category"><?php printf('%s', get_the_category_list(', ')); ?></span>
	 				<?php the_tags('<span class="post_tags">',', ','</span>'); ?>
	 			<div>
	 			
	 		</li>
	 	</ul>

	<?php comments_template(); // Get wp-comments.php template ?>
	
<?php
	endwhile;
	else : 
		echo walleve_404_message(); 
	endif;
?>
	<?php if(!(is_page() || is_single()) ){ ?>
		<div id="pagenav">
			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		</div>
	<?php } ?>

<?php get_footer(); ?>
